package summer_vacation.lvchang.myyVacation;
/**
 * Created by Administrator on 2015/9/6.
 */
public class Text21 {
    public static void main(String[] args) {

        for (int p = 100; p <= 999; p++) {
            int a = (p / 100);
            int b = ((p - a * 100) / 10);
            int c = p - (a * 100 + b * 10);
            if (p == a * a * a + b * b * b + c * c * c) {
                System.out.println("100到999里面的水仙花数有：" + p);
            }
        }

    }
}
